﻿@using DocProcessingWorkflow.Models.Stock
@model IEnumerable<StockViewModel>

<table id="availableItems" class="table">
  <thead>
    <tr>
      <th class="col-md-1"></th>
      <th class="col-md-1">Station Number</th>
      <th class="col-md-1">Code</th>
      <th class="col-md-2">Description</th>
      <th class="col-md-1">Weight</th>
      <th class="col-md-1">Size X</th>
      <th class="col-md-1">Size Y</th>
      <th class="col-md-1">Facing</th>
      <th class="col-md-1">Colour</th>
      <th class="col-md-1"></th>
    </tr>
  </thead>
  @if (Model.Any())
  {
    foreach (StockViewModel stock in Model)
    {
      <tr class="stockitem" data-stockid="@stock.StockId">
        <td class="col-md-1"><input class="includeitem" type="checkbox" value="false" /></td>
        <td class="stationNumber"></td>
        <td class="code">@stock.Code</td>
        <td>@stock.Description</td>
        <td>@stock.Weight</td>
        <td>@stock.SizeX</td>
        <td>@stock.SizeY</td>
        <td>@stock.Facing</td>
        <td>@stock.Colour</td>
        <td></td>
      </tr>
    }
  }
  else
  {
    <td>No items</td>
  }
</table>